﻿namespace FFF.Test.Application.Framework
{
    using System;
    using System.Collections.Generic;
    using System.Reflection;
    using System.Text;
    using Abp.AutoMapper;
    using Abp.Modules;
    using Abp.Reflection.Extensions;
    using Abp.Threading.BackgroundWorkers;
    using FFF.Test.DataAccess.Framework;
    using FFF.Test.Entity;

    /// <summary>
    /// 应用层模块
    /// </summary>
    [DependsOn(
         typeof(YudmAbpApplication00_IPubModule)
        )]
    public class YudmAbpApplication00PubModule : AbpModule
    {
        /// <summary>
        /// 初始化应用层配置
        /// </summary>
        public override void PreInitialize()
        {
        }

        /// <summary>
        /// 依赖注入初始化
        /// </summary>
        public override void Initialize()
        {
            Assembly thisAssembly = typeof(YudmAbpApplication00PubModule).GetAssembly();

            this.IocManager.RegisterAssemblyByConvention(thisAssembly);

            this.Configuration.Modules.AbpAutoMapper().Configurators.Add(
               cfg => cfg.AddProfiles(thisAssembly)
           );
        }
    }
}